import { Box } from "@mui/material"
import Icons from "@app-nextmesh-env/nextmesh/Icons"

export default function SwitchToggle({ toggle, onClick }: { toggle: boolean, onClick?: () => void }) {
  return (
    <Box style={{
      transform: toggle ? 'rotate(0deg)' : 'rotate(90deg)',
      transition: 'transform 300ms'
    }}
      height={'24px'}
      onClick={onClick}>
      <Icons name='IconChevronRight' />
    </Box>)
}
